package com.svse.designPattern.behaviour.observer.service;

import java.util.Observable;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/8 12:00
 */
public class OilFutures extends Observable {
    private float price;

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        super.setChanged();
        super.notifyObservers(price);
        this.price = price;
    }
}
